package builder;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2021/10/19
 */
public class ComputerTest {
	public static void main(String[] args) {
		ComputerDirector computerDirector = new ComputerDirector();
		MacComputerBuilder macComputerBuilder = new MacComputerBuilder("I5", "金士顿");
		computerDirector.makeComputer(macComputerBuilder);
		Computer macComputer = macComputerBuilder.getComputer();

		LenovoComputerBuilder lenovoComputerBuilder = new LenovoComputerBuilder("I7", "金士顿");
		computerDirector.makeComputer(lenovoComputerBuilder);
		Computer lenovoComputer = lenovoComputerBuilder.getComputer();
	}
}
